package com.igeekhome.microserviceconsumermovie8001;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.circuitbreaker.EnableCircuitBreaker;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
//开启Feign声明式调用
//basePackages 指定当前Feign接口所在的包，如果feign接口位于当前项目主程序所在包下，则basePackages默认不需要设置
@EnableFeignClients(basePackages = "com.igeekhome.microservice.feign")
//加载com.igeekhome.microservice.feign 回退处理类
//@ComponentScan(basePackages = "com.igeekhome.microservice.feign")
//开启断路功能
@EnableCircuitBreaker
public class MicroserviceConsumerMovie8001Application {

    public static void main(String[] args) {
        SpringApplication.run(MicroserviceConsumerMovie8001Application.class, args);
    }

}
